/**
 * 
 */


/**
 * This class uses regular expressions to check data integrity
 * @author Kevin Johnstone
 * @version 1.0
 */
public class DataIntegrity {
	
	 
	 
	/**
	 * Returns true if the input is only numbers
	 * @param input the string to test integrity of
	
	 * @return true if only numbers, false otherwise */
	 public boolean isOnlyNumbers(String input) {
	 	return input.matches("\\d{1,}");
	 }
	 
		/**
		 * Returns true if the input is only Letters
		 * @param input the string to test integrity of
		
		 * @return true if only Letters, false otherwise */
	 public boolean isOnlyLetters(String input) {
		 return input.matches("[a-zA-Z]{1,}");
	 }
	 
	 /**
	  * Returns true if the input is not null (blank in this case)
	  * @param input the string to test integrity of
	 
	  * @return true if not null (blank), otherwise false */
	 public boolean isNotNull(String input){
		 return input.matches(".*");
	 }
	 
	 /**
	  * Method main.
	  * @param args String[]
	  */
//	 public static void main (String[] args) {
//		 DataIntegrity test = new DataIntegrity();
//		 System.out.println(test.isNotNull(""));
//	 }

	
}
